package pers.cz.postgirl.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pers.cz.jefconfig.log.LogUtils;

/**
 * @program: postgirl-client
 * @description: 日志工具
 * @author: Cheng Zhi
 * @create: 2023-05-23 10:55
 **/
public class JefLog {

    Logger logger;
    public JefLog(Class clazz) {
        logger = LoggerFactory.getLogger(clazz);

    }

    public void debug(String s) {
        System.out.println(s);
        if (logger.isDebugEnabled()) {
            logger.debug(s);
        }
    }

    public void error(String s) {
        System.out.println(s);
        logger.error(s);
    }

    public void info(String s) {
        System.out.println(s);
        logger.info(s);
    }

    public void error(Throwable e, String s) {
        logger.error(s, e);
    }


}
